約 5,729,899 件
https://w.atwiki.jp/kagiwada/pages/41.html
PHP4.4.9 CentOS4.5 Apahe2.2.9+php4.4.9+mysql4.1.22 Client API version 4.1.22 wget http //jp.php.net/distributions/php-4.4.9.tar.gz tar zxvf ./php-4.4.9.tar.gz コピペするなら↓ ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-pgsql=/usr/local/pgsql --with-config-file-path=/usr/local/apache2/conf --enable-mbstring --with-zlib-dir=/usr/local/lib --with-gd --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --with-xpm-dir=/usr/lib/X11 --with-mysql=/usr 内容 ./configure #--with-apxs2=/usr/local/apache2/bin/apxs #--with-pgsql=/usr/local/pgsql #--with-config-file-path=/usr/local/apache2/conf #--enable-mbstring #--enable-mbstr-enc-trans #--enable-mbresex #--with-zlib-dir=/usr/local/lib #--with-gd=/usr/local/lib #--with-jpeg-dir=/usr/local/lib #--with-png-dir=/usr/local/lib #--with-freetype-dir=/usr/local/lib #--with-xpm-dir=/usr/lib/X11 #--with-mysql=/usr make make install iniファイルをコピーして編集 cp php.ini-dist /usr/local/apache2/conf/php.ini cd /usr/local/apache2/conf/ vi php.ini ;magic_quotes_gpc = On magic_quotes_gpc = Off default_charset = "EUC-JP" [mbstring] ; language for internal character representation. mbstring.language = Japanese ; internal/script encoding. ; Some encoding cannot work as internal encoding. ; (e.g. SJIS, BIG5, ISO-2022-*) mbstring.internal_encoding = EUC-JP ; http input encoding. mbstring.http_input = auto ; http output encoding. mb_output_handler must be ; registered as output buffer to function ;mbstring.http_output = SJIS mbstring.http_output = EUC-JP ; enable automatic encoding translation according to ; mbstring.internal_encoding setting. Input chars are ; converted to internal encoding by setting this to On. ; Note Do _not_ use automatic encoding translation for ; portable libs/applications. ;mbstring.encoding_translation = Off mbstring.encoding_translation = On ; automatic encoding detection order. ; auto means mbstring.detect_order = auto ; substitute_character used when character cannot be converted ; one from another mbstring.substitute_character = none ; overload(replace) single byte functions by mbstring functions. ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), ; etc. Possible values are 0,1,2,4 or combination of them. ; For example, 7 for overload everything. ; 0 No overload ; 1 Overload mail() function ; 2 Overload str*() functions ; 4 Overload ereg*() functions ;mbstring.func_overload = 0 /usr/local/apache2/bin/apachectl start はまりどころ。 #--with-mysql=/usr を入れとかないと、Client API version が古くなっちゃいます。 3.23.49 だったかな? もう一度入れなおしたいなら。 ./configure #--with-apxs2=/usr/local/apache2/bin/apxs #--with-pgsql=/usr/local/pgsql #--with-config-file-path=/usr/local/apache2/conf #--enable-mbstring #--enable-mbstr-enc-trans #--enable-mbresex #--with-zlib-dir=/usr/local/lib #--with-gd=/usr/local/lib #--with-jpeg-dir=/usr/local/lib #--with-png-dir=/usr/local/lib #--with-freetype-dir=/usr/local/lib #--with-xpm-dir=/usr/lib/X11 #--with-mysql=/usr #make clean #make #make install だす!! これ忘れないでね。 vi /usr/local/apache2/conf/httpd.conf AddType application/x-httpd-php .php .php4 AddType application/X-httpd-php-source .phps .php4s アクセス数| - | 名前 コメント
https://w.atwiki.jp/orange_sherbet/
ICL2007W Intercultural Communication and Relations Groupwork - Making Friends Beyond the Barriers Notice! Random Chatting Page Website! ICL WEBSITE However, this is still under construction. I m waiting for everyone s work to be finished! Notice! For editors page link. Please wrap up the stuff in the draft here. Introduction Motivation Language Initial Meetings Everyday Conversations Social Interaction Conclusion (maybe this one doesn t have to be done by tomorrow... we could discuss about conclusion in class, with what we ve got for each pages.) when you read discussions, i think we should show that we read the discussion. but not always we need to "edit" the page (when you dont have anything special to add) so, i suggest to add comment form each discussion, and leave a message when you read. it is easier to use, and more like bbs or forum leave comment like this -- daisuke (2008-02-04 02 31 08) hmmm... iccc -- yoshimi (2008-02-04 09 24 11) Sorry, I found this note out just right now. -- Jin (2008-02-10 14 16 30) everyone feel free to MOVE STUFF AROUND.....if you see something that would fit better on a different page, feel free to copy and paste!!! -- courtney (2008-02-11 13 25 02) hey guys, I was thinking.. maybe it would be better if we would include actual photos in our website. Just to make it appear more interesting.. what do you think? -- カトリーナ (2008-02-14 00 54 04) the website is awesome! so cool!!!! love it -- masumi (2008-02-17 15 49 16) 名前 コメント I couldn t figure out how to make a new wiki inside moodle, so I made up one. Maybe this can be useful to discuss outside class. Sorry for the inconvenience, that the Wiki service that I found was only in Japanese, so it there might be some troubles for Courtney and Katrina, but I ll try to modify the pages into English as possible. Just mail me if you have any troubles in using wiki. But, I think the only Japanese that you have to understand in using this Wiki is「ページ保存」which is below, or above your editing form, and it means "save edit". Editing permission is open to everyone for now, you can edit from everywhere, so please do edit! Maybe we can start up with writing down our notes to Wiki. To the April students 英語でなかなか自分の言いたいことのニュアンスが 表せない場合もあると思うので、日本語で書き込みしても構いませんが、 最終的なwebsiteではどっちにしろ英語にしなきゃならないので、 出来れば英語でお願いします。 Edit this page
https://w.atwiki.jp/redcloud/pages/19.html
目次 目次 前提条件 PHP5.3.0 インストール libxml2-develをインストール curl-develをインストール mysqlクライアントをインストール gdをインストール ※画像処理 PHPインストール 設定 php.iniの編集 httpd.confの編集 動作確認 xdebugインストール(デバッグ用) 前提条件 CentOS5.4上に構築する PHP5.3.0 インストール libxml2-develをインストール # yum -y install libxml2-devel curl-develをインストール # yum -y install curl-devel mysqlクライアントをインストール ncurses-develのインストール # yum -y install ncurses-devel mysql-tritonnのインストール ※MySQLクライアント。MySQLサーバが全文検索対応(tritonn)であることを前提とする $ wget http //osdn.dl.sourceforge.jp/tritonn/36449/tritonn-1.0.12-mysql-5.0.67.tar.gz $ tar zxvf tritonn-1.0.12-mysql-5.0.67.tar.gz $ cd tritonn-1.0.12-mysql-5.0.67 $ ./configure --prefix=/usr/local --with-readline --without-server $ make $ sudo make install gdをインストール ※画像処理 libjpegなどのヘッダファイルが必要そうなので先にyumでインストール # yum install -y libjpeg-devel # yum install -y libpng-devel # yum install -y freetype-devel # yum install -y fontconfig-devel # yum install -y libXpm-devel # yum install -y gettext-devel インストール $ wget http //www.libgd.org/releases/gd-2.0.35.tar.gz $ tar zxvf gd-2.0.35.tar.gz $ cd gd-2.0.35 $ ./configure --prefix=/usr/local --enable-shared $ make $ sudo make install PHPインストール $ wget http //jp.php.net/get/php-5.3.0.tar.gz/from/this/mirror $ tar zxvf php-5.3.0.tar.gz $ cd php-5.3.0 $ ./configure --prefix=/usr/local --with-apxs2=/usr/local/apache2/bin/apxs --enable-mbstring=shared --with-mysql=shared,/usr/local --enable-pdo=shared --with-pdo-mysql=shared,/usr/local --without-sqlite --without-pdo-sqlite --with-xmlrpc --with-gd=shared,/usr/local --enable-gd-jis-conv --with-zlib-dir --with-png-dir --with-jpeg-dir --with-freetype-dir --with-curl $ make $ make test $ sudo make install 設定 php.iniの編集 $ sudo cp -p php.ini-development /usr/local/lib/php.ini # chown root.root /usr/local/lib/php.ini # vi /usr/local/lib/php.ini ;extension_dir = "./" extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20090626/" extension=gd.so extension=mbstring.so extension=mysql.so extension=pdo.so extension=pdo_mysql.so httpd.confの編集 # vi /usr/local/apache2/conf/httpd.conf 動作確認 $ vi ~/htdocs/phpinfo.php ?php phpinfo(); # service httpd start phpinfoが正常表示される事を確認 ★dateセクションでwarningが表示されてるのが気になる。。。 xdebugインストール(デバッグ用) $ wget http //xdebug.org/files/xdebug-2.0.5.tgz $ tar zxvf xdebug-2.0.5.tgz $ cd xdebug-2.0.5 $ phpize $ ./configure --with-php-config=/usr/local/bin/php-config --enable-xdebug $ make $ sudo cp -p modules/xdebug.so /usr/local/lib/php/extensions/no-debug-non-zts-20090626/ $ sudo vi /usr/local/lib/php.ini zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so $ ~/htdocs/debug.php ?php $hoge = あいうえお ; var_dump($hoge); phpinfoでxdebugセクションが表示され、var_dumpがデバッグレイアウトで表示される事を確認
https://w.atwiki.jp/comneko/pages/9.html
layout.css サイト全体の大まかなレイアウトブロックのレイアウトのみを設定。 デザイン、ブロック内部のコンテンツレイアウトは別CSSにて設定する。 SAMPLE /*** 大外枠 ***/ #outline { position relative; margin 0 auto; text-align left; background-color #FFF; z-index 0; width 732px; } /*** ヘッダー ***/ #header { position relative; width 732px; height 36px; background-color #Fc9; z-index 10; } /*** フッター ***/ #footer { width 732px; margin 0 auto; text-align left; z-index 10; } /*** メニューその1(ヘッダメニュー) ***/ /** デザイン詳細は parts_menu.css **/ #menuCont1 { width 732px; height 20px; overflow hidden; z-index 20; } /*** コンテンツ ***/ /** サイト内容記述領域。詳細は object.css で規定 **/ #contents { width 732px; min-height 360px; _hight 360px; z-index 1; }
https://w.atwiki.jp/chaos_pastel/
chaos pastel orange ご案内 「chaos pastel orange」制作用wikiです。 2013/12完成、配布開始! 失った記憶と狂った視界。それでも平穏だと思っていた学園生活が、下駄箱に届いたメモをきっかけに歪められていく。「私、和樹が治るまで。絶対、私のこと許さないから」「あたしのせいだ」「…………サイコパス……」学園サイコパステルノベル chaos pastel - orange 解散したスタッフのかたへ 既存の素材は組み込めなくても、できたらおまけ等にと考えています。 個人的には、文章も音楽も画像も、素材製作者さんご本人が手元で公開したい場合はご自由に公開して頂ければと思っています。 フリー素材として配布なども全く問題ないと考えています。 その際、企画カオス★パステルのために製作した素材であることを明記してもしなくても自由で良いのではと考えています。 ただし全く自由としてしまうと、ご本人でないかたが配布できてしまうので、公開・配布する場合はできたらご本人様確認できる形でご連絡頂ければと思います。 上記に問題がありそうでしたら、お知らせ下さい。 wikiの設定 現在、編集はメンバー、閲覧は誰でも状態。 引継ぎ中:アオイトトンボ ◆rNY7dzSz8Y 連絡先:aoitotonbopastel★gmail.com(★=@) スレ・wiki・ロダ 現行スレ画期的なギャルゲー思いついたpart8 chaos pastel orangehttp //ex14.vip2ch.com/test/read.cgi/news4gep/1359375144/ 過去スレ 前wiki画期的なギャルゲー思いついた カオス★パステルまとめwiki ロダカオス★パステル制作用うpロダ Special Thanks 順不同敬称略 完成が近づいてお借りする素材が確定してから改めて連絡予定 GEP 【隔離病棟】ヒロインがヤンデレのギャルゲみんなで作ろうぜ!【11号室】873タグ除去&置換スクリプト やっつけver タグを取り除くCGIを作ってお貸しくださいました。 画像素材配布サイト様 aquamary images http //www.aquamary.com(連絡済み) きまぐれアフター http //www5d.biglobe.ne.jp/~gakai/(連絡済み) ぐったりにゃんこのホームページ http //guttari8.sakura.ne.jp/(連絡済み) 誰そ彼亭 http //may.force.mepage.jp/(連絡済み) R*U*T*A ~ゲームのためのコミュニティ~ http //ruta2.fc2web.com/(連絡済み) NAOXな部屋 http //naox.main.jp/NAOX/(連絡済み) フリー写真素材 Futta.NET http //www.futta.net/(連絡済み) First Seed Material http //www.tekepon.net/fsm/(連絡済み) Rド http //www.geocities.co.jp/Milano-Cat/3319/(連絡済み) Silhouette design http //kage-design.com/(連絡済み) フリー写真素材PixcyTexture様 http //pixcytexture.web.fc2.com/(メール届かず) 写真素材足成 http //www.ashinari.com/(連絡済み) トリスメギストスラボ http //www.trismegistuslabo.com/blog/(連絡済み) 音楽素材配布サイト様 フリーBGM Music with myuu http //www.ne.jp/asahi/music/myuu/(連絡済み) 効果音素材配布サイト様 WEB WAVE LIB http //wwl.s-t-t.com/(報告・お礼窓口無?) ザ・マッチメイカァズ2nd http //osabisi.sakura.ne.jp/m2/(連絡済み) 音楽素材/魔王魂 http //maoudamashii.jokersounds.com/(連絡済み) フリー効果音 On-Jin ~音人~ http //www.yen-soft.com/ssse/(連絡済み) 効果音源 http //koukaongen.com/(連絡済み) Sound Jay http //www.soundjay.com/(連絡済み) 小森平の使い方 http //taira-komori.jpn.org/(連絡済み) 民譚/ポケットエポック http //minpoke.dee.cc/(連絡済み) ちょい音 http //www.heavenlyblue.info/se_free/(連絡済み) ポケットサウンド/効果音素材 http //pocket-se.info/(連絡済み) ボイス素材配布サイト様 フリー声素材配布サイト - あみたろの声素材工房 http //www14.big.or.jp/~amiami/happy/(連絡済み) スクリプト参考サイト様 OUTFOCUS http //homepage1.nifty.com/gutchie/(連絡済み) TJSに挑戦! http //tjs2.info/(連絡済み) 色々な墓場 http //www.geocities.co.jp/Bookend/2352/(連絡済み) サークル煌明 http //koumei.rejec.net/(連絡済み) Biscrat http //www.biscrat.com/works/(連絡済み) フォント配布サイト様 Ume-font http //sourceforge.jp/projects/ume-font/wiki/FrontPage(UmePlusレンダリング)(報告・お礼窓口無? レビューにお礼だけ) M+ FONTS http //mplus-fonts.sourceforge.jp/(UmePlusレンダリング)(連絡済み) LinuxPlayers http //www.geocities.jp/ep3797/index.html(UmePlusレンダリング)(連絡済み) あくび印 http //pandachan.jp/(画像)(連絡済み) itouhiroメモ http //d.hatena.ne.jp/itouhiro/(画像)(連絡済み) Gray Graphics http //www.orange.ne.jp/~den7/index.html(画像)(連絡済み) ガウプラ http //www.graphicartsunit.com/gaupra/(画像)(連絡済み) Little Limit http //www.geocities.jp/littlimi/(画像)(連絡済み) Y.Oz http //yozvox.web.infoseek.co.jp/(画像)(連絡済み) VSTi プラグイン配布サイト様 YMCK http //www.ymck.net/(連絡済み) 制作ツール配布サイト様 吉里吉里 ダウンロード ページ http //kikyou.info/tvp/(連絡済み) AviUtlのお部屋 http //spring-fragrance.mints.ne.jp/aviutl/(連絡済み) 以下広告
https://w.atwiki.jp/openx/pages/19.html
概要 /init.phpで定義 インターフェースの初期化 引数 なし 実装 /** * The environment initialisation function for the OpenX administration interface. * * @TODO Should move the user authentication, loading of preferences into this * file, and out of the /www/admin/config.php file. */ function init() { グローバル変数_MAX, _OXを破棄。読み込みを防ぐ . // Prevent _MAX from being read from the request string (if register globals is on) unset($GLOBALS[ _MAX ]); unset($GLOBALS[ _OX ]); . /** * Provide backwards-compatability methods for ctype (required by Zend) if necessary * @author // http //upgradephp.berlios.de/ */ 上位互換性のための定義 . if (!function_exists( ctype_alnum )) { function ctype_alnum($text) { return preg_match( /^[A-Za-z\d\300-\377]+$/ , $text); } function ctype_alpha($text) { return preg_match( /^[a-zA-Z\300-\377]+$/ , $text); } function ctype_digit($text) { return preg_match( /^\d+$/ , $text); } function ctype_xdigit($text){ return preg_match( /^[a-fA-F0-9]+$/ , $text); } function ctype_cntrl($text) { return preg_match( /^[\000-\037]+$/ , $text); } function ctype_space($text) { return preg_match( /^\s+$/ , $text); } function ctype_upper($text) { return preg_match( /^[A-Z\300-\337]+$/ , $text); } function ctype_lower($text) { return preg_match( /^[a-z\340-\377]+$/ , $text); } function ctype_graph($text) { return preg_match( /^[\041-\176\241-\377]+$/ , $text); } function ctype_punct($text) { return preg_match( /^[^0-9A-Za-z\000-\040\177-\240\300-\377]+$/ , $text); } function ctype_print($text) { return ctype_punct($text) && ctype_graph($text); } } . // Set up server variables setupServerVariables(); // Set up the UI constants setupConstants(); // Set up the common configuration variables setupConfigVariables(); // Disable all notices and warnings, as some PAN code still // generates PHP warnings in places error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING ^ E_DEPRECATED); // If not being called from the installation script... if ( (!isset($GLOBALS[ _MAX ][ CONF ][ openads ][ installed ])) || (!$GLOBALS[ _MAX ][ CONF ][ openads ][ installed ]) ) { define( OA_INSTALLATION_STATUS , OA_INSTALLATION_STATUS_NOTINSTALLED); } else if ($GLOBALS[ _MAX ][ CONF ][ openads ][ installed ] && file_exists(MAX_PATH. /var/UPGRADE )) { define( OA_INSTALLATION_STATUS , OA_INSTALLATION_STATUS_UPGRADING); } else if ($GLOBALS[ _MAX ][ CONF ][ openads ][ installed ] && file_exists(MAX_PATH. /var/INSTALLED )) { define( OA_INSTALLATION_STATUS , OA_INSTALLATION_STATUS_INSTALLED); } global $installing; if ((!$installing) && (PHP_SAPI != cli )) { $scriptName = basename($_SERVER[ SCRIPT_NAME ]); if ($scriptName != install.php && PHP_SAPI != cli ) { // Direct the user to the installation script if not installed //if (!$GLOBALS[ _MAX ][ CONF ][ openads ][ installed ]) if (OA_INSTALLATION_STATUS !== OA_INSTALLATION_STATUS_INSTALLED) { // Do not redirect for maintenance scripts if ($scriptName == maintenance.php || $scriptName == maintenance-distributed.php ) { exit; } $path = dirname($_SERVER[ SCRIPT_NAME ]); if ($path == DIRECTORY_SEPARATOR) { $path = ; } if (defined( ROOT_INDEX )) { // The root index.php page was called to get here $location = Location . $GLOBALS[ _MAX ][ HTTP ] . OX_getHostNameWithPort() . $path . /www/admin/install.php ; header($location); } elseif (defined( WWW_INDEX )) { // The index.php page in /www was called to get here $location = Location . $GLOBALS[ _MAX ][ HTTP ] . OX_getHostNameWithPort() . $path . /admin/install.php ; header($location); } else { // The index.php page in /www/admin was called to get here $location = Location . $GLOBALS[ _MAX ][ HTTP ] . OX_getHostNameWithPort() . $path . /install.php ; header($location); } exit(); } } } // Start PHP error handler $conf = $GLOBALS[ _MAX ][ CONF ]; include_once MAX_PATH . /lib/max/ErrorHandler.php ; $eh = new MAX_ErrorHandler(); $eh- startHandler(); // Store the original memory limit before changing it $GLOBALS[ _OX ][ ORIGINAL_MEMORY_LIMIT ] = OX_getMemoryLimitSizeInBytes(); // Increase the PHP memory_limit value to the OpenX minimum required value, if necessary OX_increaseMemoryLimit(OX_getMinimumRequiredMemory()); } 呼び出し元 /init.php コメント
https://w.atwiki.jp/cheapugg058/pages/17.html
" On top of that, she looks pretty damn good for being in her 50s These cause three putt disasters and can become very frustrating!There are all varieties of golf swing tips out there to be found Buying US Open tennis tickets was a little challenging Infact, if I remember well, I was able to make the software download instantly in less than 1 minute The onus will be on them this season to try and get quarterback Matthew Stafford to finally last a full year healthy Some of them are already well-covered by bloggers, and others there is more leewaybut that s for another entry The receiver is the device that translated the electromagnetic waves into images and sound Many of these [[Tony Gonzalez Jersey http //www.falconsofficialonline.com]] are made in advance and transported to the party The cell phones and accessories will cover every area of wall space that is available, and it is quite an over-whelming sight to experience Fruta Planta is a Chinese diet pill manufactured by a China-based health company called Guangzhou Health Care They are performed at Chinese New Year, the August moon Festival and other celebratory occasions for good luck One can use the same cue stick to play any versionditto204608457020678144 {background #5AD2D8 urlart, let s take a look at the where and the whenIn all the main forms of modern billiards--American pool, English snooker, and carom billiards--the cue or cue stick is really the only equipment that carries directly over from one game to the otherWorkaholicsNew Episodes May 2012The Derswww [Via EFF Knots- This game is twister on the iphone These work by suspending power to the 12 Volt accessories being used when the battery voltage drops favorite span {background-position -32px 2px;} pTwo days later, the situation was apparently repeated, and this time the player was confined to a room that is often used as a media room by visiting teams Their stock is quite amazing too, because they will have every cell phone that is being offered in any retailing outlet for miles around, at prices that will astound even the most knowledgeable of cell phone users The bike is provided with freestyle handle bar Then there are the aqua and black guys on the other side of the fielddittoTweet spandittodownarrow {width 0;height 0;border-left 20px solid transparent;border-right 20px solid transparent;border-top 20px solid #EEE;margin 0 0 0 73px;}Follow @CaesarTheJDC This not only saves you a lot of time, but also saves you a whole lot of dish network menu guide difficulty as all the details you need is accessible at one particular area It is also rich in vitamins, minerals and natural antioxidants If you prefer fixed mounted fish finders, the Fishin Buddy line can also be mounted to your craft using the included bracket These horns will produce a loud sound of 120 decibels What has been surprising so far this season has been the New Orleans defense10retweet span {background-position -80px 3px;}span As a solo artist, she recorded great music, with singles like "I Hate Myself for Loving You," "Do You Want to Touch Me," and probably most recognizably, "I Love Rock n Roll -Wikipediatwimg As the Oklahoma native says on her website, "I am a huge football fan, especially when it comes to my hometown Sooners and my Green Bay PackersdittoTweet span The 7-8 monthswithout comeptitive football before the August NFL preseason cultivatesanticipation for the NFL and collegiate football product A screen name can also be referred to as user name north face outlet timestamp a span {display inline-block;width 16px;background-image uJustin Smith Jersey rl(http //images With 266 passing yards and three touchdowns in his first game this season, Sanchez proved he is not going anywhereTackling Drills for FootballTackling drills are made a regular feature by some coaches in a team s practice scheduleWhile most tailgaters party at their hometown stadium, some travel to any game their team playsdittoTweet span For Kim this will be a more difficult marriagemetadata {display block;width 100%;clear both;margin-top 8px;padding-top 12px;height 65px;} p Shaloub gets extra points because he s one of us ? born and raised in Green Bay authorities, including the yellow first down line for NFL broadcasts; he is co-founder of South Swell Sports, which has become a successful San Diego lacrosse league and equipment retailer; and heStevan Ridley Jersey was a finalist for the Ernst and Young Entrepreneur of the Year award 8 hours ago via web·Reply·Retweet·Favorite·powered by @socialdittoFormer NFL linebacker Junior Seau was found dead at his home yesterday of an apparent self-inflicted gunshot wound to the chest www.michaelkorsoutletob.com
https://w.atwiki.jp/knowledge_library/pages/62.html
php.ini output_buffering = Off output_handler = none default_mimetype = "text/html" default_charset = UTF-8 ;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so" ;use xdebug ;extension=php_bz2.dll ;extension=php_curl.dll ;extension=php_fileinfo.dll ;extension=php_gd2.dll ;extension=php_gettext.dll ;extension=php_gmp.dll ;extension=php_intl.dll ;extension=php_imap.dll ;extension=php_interbase.dll ;extension=php_ldap.dll extension=php_mbstring.dll ;extension=php_exif.dll ; Must be after mbstring as it depends on it extension=php_mysql.dll ;extension=php_mysqli.dll ;extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client ;extension=php_oci8_11g.dll ; Use with Oracle 11g Instant Client ;extension=php_openssl.dll ;extension=php_pdo_firebird.dll ;extension=php_pdo_mssql.dll extension=php_pdo_mysql.dll ;extension=php_pdo_oci.dll ;extension=php_pdo_odbc.dll ;extension=php_pdo_pgsql.dll ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; ;include and extension include_path = "/usr/include/php/include" extension_dir = "/usr/include/php/ext" ;default timezone [Date] date.timezone = Asia/Tokyo ;pdo [Pdo_mysql] pdo_mysql.default_socket=/opt/local/var/run/mysql5/mysqld.sock ;mbstiring [mbstring] mbstring.language = Japanease mbstring.encoding_translation = On mbstring.http_input = auto mbstring.http_output = UTF-8 mbstring.internal_encoding = UTF-8 mbstring.substitute_character = none xdebug [xdebug] xdebug.idekey="macgdbp" xdebug.remote_enable=1 xdebug.remote_handler="dbgp" xdebug.remote_mode=req xdebug.remote_host="localhost" xdebug.remote_port=9000 xdebug.remote_log="C \php5\logs\xdebug.log" xdebug.manual_url = http //jp2.php.net xdebug.collect_params = On xdebug.dump.GET = * xdebug.dump.POST = * error error_reporting = E_ALL ~E_DEPRECATED display_errors = On ;error_log = syslog //運用時に使用する項目 [Session] session.save_handler = files session.save_path = "/tmp/" session.use_cookies = 1 session.use_only_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 //開発環境では0 運用時は30~1h程度? session.cookie_path = / session.cookie_domain = http //php_application_demo.com session.cookie_httponly = 1 session.serialize_handler = php
https://w.atwiki.jp/m_shige1979/pages/443.html
PHPインストール設定(WindowsXP) ファイルダウンロード ダウンロードサイトより「VC6 x86 Thread Safe」のファイル(Zip)をダウンロードする ダウンロードファイル解凍 Zipファイルを解凍して、解凍後のディレクトリをphp5へ変更し、c \php5へ移動 環境設定 環境変数を設定して、"path"に"c \php5"を追加 apacheの設定ファイルを編集 ・・・・ 省略 ・・・・ #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule version_module modules/mod_version.so #LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule php5_module C /php5/php5apache2_2.dll PHPIniDir c /php5 ※PHPIniDirの設定はシステム環境変数 PHPRC に設定することでも対応できる ・・・・ 省略 ・・・・ [Date] ; Defines the default timezone used by the date functions ; http //php.net/date.timezone date.timezone = Asia/Tokyo ・・・・ 省略 ・・・・ php.ini-developmentの設定ファイルを編集し、C \php5\php.iniへコピー ・・・・ 省略 ・・・・ <IfModule dir_module> DirectoryIndex index.html index.php </IfModule> ・・・・ 省略 ・・・・ <IfModule mime_module> # # TypesConfig points to the file containing the list of mappings from # filename extension to MIME-type. # TypesConfig conf/mime.types # # AddType allows you to add to or override the MIME configuration # file specified in TypesConfig for specific file types. # #AddType application/x-gzip .tgz # # AddEncoding allows you to have certain browsers uncompress # information on the fly. Note Not all browsers support this. # #AddEncoding x-compress .Z #AddEncoding x-gzip .gz .tgz # # If the AddEncoding directives above are commented-out, then you # probably should define those extensions to indicate media types # AddType application/x-compress .Z AddType application/x-gzip .gz .tgz # # AddHandler allows you to map certain file extensions to handlers # actions unrelated to filetype. These can be either built into the server # or added with the Action directive (see below) # # To use CGI scripts outside of ScriptAliased directories # (You will also need to add ExecCGI to the Options directive.) # #AddHandler cgi-script .cgi # For type maps (negotiated resources) #AddHandler type-map var # # Filters allow you to process content before it is sent to the client. # # To parse .shtml files for server-side includes (SSI) # (You will also need to add Includes to the Options directive.) # #AddType text/html .shtml #AddOutputFilter INCLUDES .shtml AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps </IfModule> index.phpを編集 <?php phpinfo(); ?> apacheを再起動して確認
https://w.atwiki.jp/feedback1970/pages/57.html
memo source 1 /* Licensed to the Apache Software Foundation (ASF) under one or more 2 * contributor license agreements. See the NOTICE file distributed with 3 * this work for additional information regarding copyright ownership. 4 * The ASF licenses this file to You under the Apache License, Version 2.0 5 * (the "License"); you may not use this file except in compliance with 6 * the License. You may obtain a copy of the License at 7 * 8 * http //www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef APACHE_HTTP_CONFIG_H 18 #define APACHE_HTTP_CONFIG_H 19 20 #include "apr_hooks.h" 21 #include "util_cfgtree.h" 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 27 /** 28 * @file http_config.h 29 * @brief Apache Configuration 30 */ 31 32 /* 33 * The central data structures around here... 34 */ 35 36 /* Command dispatch structures... */ 37 38 /** 39 * How the directives arguments should be parsed. 40 * @remark Note that for all of these except RAW_ARGS, the config routine is 41 * passed a freshly allocated string which can be modified or stored 42 * or whatever... 43 */ 44 enum cmd_how { 45 RAW_ARGS, /** cmd_func parses command line itself */ 46 TAKE1, /** one argument only */ 47 TAKE2, /** two arguments only */ 48 ITERATE, /** one argument, occuring multiple times 49 * (e.g., IndexIgnore) 50 */ 51 ITERATE2, /** two arguments, 2nd occurs multiple times 52 * (e.g., AddIcon) 53 */ 54 FLAG, /** One of On or Off */ 55 NO_ARGS, /** No args at all, e.g. /Directory */ 56 TAKE12, /** one or two arguments */ 57 TAKE3, /** three arguments only */ 58 TAKE23, /** two or three arguments */ 59 TAKE123, /** one, two or three arguments */ 60 TAKE13 /** one or three arguments */ 61 }; 62 /** 63 * This structure is passed to a command which is being invoked, 64 * to carry a large variety of miscellaneous data which is all of 65 * use to *somebody*... 66 */ 67 typedef struct cmd_parms_struct cmd_parms; 68 69 #if defined(AP_HAVE_DESIGNATED_INITIALIZER) || defined(DOXYGEN) 70 71 /** 72 * All the types of functions that can be used in directives 73 * @internal 74 */ 75 typedef union { 76 /** function to call for a no-args */ 77 const char *(*no_args) (cmd_parms *parms, void *mconfig); 78 /** function to call for a raw-args */ 79 const char *(*raw_args) (cmd_parms *parms, void *mconfig, 80 const char *args); 81 /** function to call for a take1 */ 82 const char *(*take1) (cmd_parms *parms, void *mconfig, const char *w); 83 /** function to call for a take2 */ 84 const char *(*take2) (cmd_parms *parms, void *mconfig, const char *w, 85 const char *w2); 86 /** function to call for a take3 */ 87 const char *(*take3) (cmd_parms *parms, void *mconfig, const char *w, 88 const char *w2, const char *w3); 89 /** function to call for a flag */ 90 const char *(*flag) (cmd_parms *parms, void *mconfig, int on); 91 } cmd_func; 92 93 /** This configuration directive does not take any arguments */ 94 # define AP_NO_ARGS func.no_args 95 /** This configuration directive will handle it s own parsing of arguments*/ 96 # define AP_RAW_ARGS func.raw_args 97 /** This configuration directive takes 1 argument*/ 98 # define AP_TAKE1 func.take1 99 /** This configuration directive takes 2 arguments */ 100 # define AP_TAKE2 func.take2 101 /** This configuration directive takes 3 arguments */ 102 # define AP_TAKE3 func.take3 103 /** This configuration directive takes a flag (on/off) as a argument*/ 104 # define AP_FLAG func.flag 105 106 /** method of declaring a directive with no arguments */ 107 # define AP_INIT_NO_ARGS(directive, func, mconfig, where, help) \ 108 { directive, { .no_args=func }, mconfig, where, RAW_ARGS, help } 109 /** method of declaring a directive with raw argument parsing */ 110 # define AP_INIT_RAW_ARGS(directive, func, mconfig, where, help) \ 111 { directive, { .raw_args=func }, mconfig, where, RAW_ARGS, help } 112 /** method of declaring a directive which takes 1 argument */ 113 # define AP_INIT_TAKE1(directive, func, mconfig, where, help) \ 114 { directive, { .take1=func }, mconfig, where, TAKE1, help } 115 /** method of declaring a directive which takes multiple arguments */ 116 # define AP_INIT_ITERATE(directive, func, mconfig, where, help) \ 117 { directive, { .take1=func }, mconfig, where, ITERATE, help } 118 /** method of declaring a directive which takes 2 arguments */ 119 # define AP_INIT_TAKE2(directive, func, mconfig, where, help) \ 120 { directive, { .take2=func }, mconfig, where, TAKE2, help } 121 /** method of declaring a directive which takes 1 or 2 arguments */ 122 # define AP_INIT_TAKE12(directive, func, mconfig, where, help) \ 123 { directive, { .take2=func }, mconfig, where, TAKE12, help } 124 /** method of declaring a directive which takes multiple 2 arguments */ 125 # define AP_INIT_ITERATE2(directive, func, mconfig, where, help) \ 126 { directive, { .take2=func }, mconfig, where, ITERATE2, help } 127 /** method of declaring a directive which takes 1 or 3 arguments */ 128 # define AP_INIT_TAKE13(directive, func, mconfig, where, help) \ 129 { directive, { .take3=func }, mconfig, where, TAKE13, help } 130 /** method of declaring a directive which takes 2 or 3 arguments */ 131 # define AP_INIT_TAKE23(directive, func, mconfig, where, help) \ 132 { directive, { .take3=func }, mconfig, where, TAKE23, help } 133 /** method of declaring a directive which takes 1 to 3 arguments */ 134 # define AP_INIT_TAKE123(directive, func, mconfig, where, help) \ 135 { directive, { .take3=func }, mconfig, where, TAKE123, help } 136 /** method of declaring a directive which takes 3 arguments */ 137 # define AP_INIT_TAKE3(directive, func, mconfig, where, help) \ 138 { directive, { .take3=func }, mconfig, where, TAKE3, help } 139 /** method of declaring a directive which takes a flag (on/off) as a argument*/ 140 # define AP_INIT_FLAG(directive, func, mconfig, where, help) \ 141 { directive, { .flag=func }, mconfig, where, FLAG, help } 142 143 #else /* AP_HAVE_DESIGNATED_INITIALIZER */ 144 145 typedef const char *(*cmd_func) (); 146 147 # define AP_NO_ARGS func 148 # define AP_RAW_ARGS func 149 # define AP_TAKE1 func 150 # define AP_TAKE2 func 151 # define AP_TAKE3 func 152 # define AP_FLAG func 153 154 # define AP_INIT_NO_ARGS(directive, func, mconfig, where, help) \ 155 { directive, func, mconfig, where, RAW_ARGS, help } 156 # define AP_INIT_RAW_ARGS(directive, func, mconfig, where, help) \ 157 { directive, func, mconfig, where, RAW_ARGS, help } 158 # define AP_INIT_TAKE1(directive, func, mconfig, where, help) \ 159 { directive, func, mconfig, where, TAKE1, help } 160 # define AP_INIT_ITERATE(directive, func, mconfig, where, help) \ 161 { directive, func, mconfig, where, ITERATE, help } 162 # define AP_INIT_TAKE2(directive, func, mconfig, where, help) \ 163 { directive, func, mconfig, where, TAKE2, help } 164 # define AP_INIT_TAKE12(directive, func, mconfig, where, help) \ 165 { directive, func, mconfig, where, TAKE12, help } 166 # define AP_INIT_ITERATE2(directive, func, mconfig, where, help) \ 167 { directive, func, mconfig, where, ITERATE2, help } 168 # define AP_INIT_TAKE13(directive, func, mconfig, where, help) \ 169 { directive, func, mconfig, where, TAKE13, help } 170 # define AP_INIT_TAKE23(directive, func, mconfig, where, help) \ 171 { directive, func, mconfig, where, TAKE23, help } 172 # define AP_INIT_TAKE123(directive, func, mconfig, where, help) \ 173 { directive, func, mconfig, where, TAKE123, help } 174 # define AP_INIT_TAKE3(directive, func, mconfig, where, help) \ 175 { directive, func, mconfig, where, TAKE3, help } 176 # define AP_INIT_FLAG(directive, func, mconfig, where, help) \ 177 { directive, func, mconfig, where, FLAG, help } 178 179 #endif /* AP_HAVE_DESIGNATED_INITIALIZER */ 180 181 /** 182 * The command record structure. Each modules can define a table of these 183 * to define the directives it will implement. 184 */ 185 typedef struct command_struct command_rec; 186 struct command_struct { 187 /** Name of this command */ 188 const char *name; 189 /** The function to be called when this directive is parsed */ 190 cmd_func func; 191 /** Extra data, for functions which implement multiple commands... */ 192 void *cmd_data; 193 /** What overrides need to be allowed to enable this command. */ 194 int req_override; 195 /** What the command expects as arguments 196 * @defvar cmd_how args_how*/ 197 enum cmd_how args_how; 198 199 /** usage message, in case of syntax errors */ 200 const char *errmsg; 201 }; 202 203 /** 204 * @defgroup ConfigDirectives Allowed locations for configuration directives. 205 * 206 * The allowed locations for a configuration directive are the union of 207 * those indicated by each set bit in the req_override mask. 208 * 209 * @{ 210 */ 211 #define OR_NONE 0 /** *.conf is not available anywhere in this override */ 212 #define OR_LIMIT 1 /** *.conf inside Directory or Location 213 and .htaccess when AllowOverride Limit */ 214 #define OR_OPTIONS 2 /** *.conf anywhere 215 and .htaccess when AllowOverride Options */ 216 #define OR_FILEINFO 4 /** *.conf anywhere 217 and .htaccess when AllowOverride FileInfo */ 218 #define OR_AUTHCFG 8 /** *.conf inside Directory or Location 219 and .htaccess when AllowOverride AuthConfig */ 220 #define OR_INDEXES 16 /** *.conf anywhere 221 and .htaccess when AllowOverride Indexes */ 222 #define OR_UNSET 32 /** unset a directive (in Allow) */ 223 #define ACCESS_CONF 64 /** *.conf inside Directory or Location */ 224 #define RSRC_CONF 128 /** *.conf outside Directory or Location */ 225 #define EXEC_ON_READ 256 /** force directive to execute a command 226 which would modify the configuration (like including another 227 file, or IFModule */ 228 /** this directive can be placed anywhere */ 229 #define OR_ALL (OR_LIMIT|OR_OPTIONS|OR_FILEINFO|OR_AUTHCFG|OR_INDEXES) 230 231 /** @} */ 232 233 /** 234 * This can be returned by a function if they don t wish to handle 235 * a command. Make it something not likely someone will actually use 236 * as an error code. 237 */ 238 #define DECLINE_CMD "\a\b" 239 240 /** Common structure for reading of config files / passwd files etc. */ 241 typedef struct ap_configfile_t ap_configfile_t; 242 struct ap_configfile_t { 243 int (*getch) (void *param); /** a getc()-like function */ 244 void *(*getstr) (void *buf, size_t bufsiz, void *param); 245 /** a fgets()-like function */ 246 int (*close) (void *param); /** a close handler function */ 247 void *param; /** the argument passed to getch/getstr/close */ 248 const char *name; /** the filename / description */ 249 unsigned line_number; /** current line number, starting at 1 */ 250 }; 251 252 /** 253 * This structure is passed to a command which is being invoked, 254 * to carry a large variety of miscellaneous data which is all of 255 * use to *somebody*... 256 */ 257 struct cmd_parms_struct { 258 /** Argument to command from cmd_table */ 259 void *info; 260 /** Which allow-override bits are set */ 261 int override; 262 /** Which methods are Limit ed */ 263 apr_int64_t limited; 264 /** methods which are limited */ 265 apr_array_header_t *limited_xmethods; 266 /** methods which are xlimited */ 267 ap_method_list_t *xlimited; 268 269 /** Config file structure. */ 270 ap_configfile_t *config_file; 271 /** the directive specifying this command */ 272 ap_directive_t *directive; 273 274 /** Pool to allocate new storage in */ 275 apr_pool_t *pool; 276 /** Pool for scratch memory; persists during configuration, but 277 * wiped before the first request is served... */ 278 apr_pool_t *temp_pool; 279 /** Server_rec being configured for */ 280 server_rec *server; 281 /** If configuring for a directory, pathname of that directory. 282 * NOPE! That s what it meant previous to the existance of Files , 283 * Location and regex matching. Now the only usefulness that can be 284 * derived from this field is whether a command is being called in a 285 * server context (path == NULL) or being called in a dir context 286 * (path != NULL). */ 287 char *path; 288 /** configuration command */ 289 const command_rec *cmd; 290 291 /** per_dir_config vector passed to handle_command */ 292 struct ap_conf_vector_t *context; 293 /** directive with syntax error */ 294 const ap_directive_t *err_directive; 295 }; 296 297 /** 298 * Module structures. Just about everything is dispatched through 299 * these, directly or indirectly (through the command and handler 300 * tables). 301 */ 302 typedef struct module_struct module; 303 struct module_struct { 304 /** API version, *not* module version; check that module is 305 * compatible with this version of the server. 306 */ 307 int version; 308 /** API minor version. Provides API feature milestones. Not checked 309 * during module init */ 310 int minor_version; 311 /** Index to this modules structures in config vectors. */ 312 int module_index; 313 314 /** The name of the module s C file */ 315 const char *name; 316 /** The handle for the DSO. Internal use only */ 317 void *dynamic_load_handle; 318 319 /** A pointer to the next module in the list 320 * @defvar module_struct *next */ 321 struct module_struct *next; 322 323 /** Magic Cookie to identify a module structure; It s mainly 324 * important for the DSO facility (see also mod_so). */ 325 unsigned long magic; 326 327 /** Function to allow MPMs to re-write command line arguments. This 328 * hook is only available to MPMs. 329 * @param The process that the server is running in. 330 */ 331 void (*rewrite_args) (process_rec *process); 332 /** Function to allow all modules to create per directory configuration 333 * structures. 334 * @param p The pool to use for all allocations. 335 * @param dir The directory currently being processed. 336 * @return The per-directory structure created 337 */ 338 void *(*create_dir_config) (apr_pool_t *p, char *dir); 339 /** Function to allow all modules to merge the per directory configuration 340 * structures for two directories. 341 * @param p The pool to use for all allocations. 342 * @param base_conf The directory structure created for the parent directory. 343 * @param new_conf The directory structure currently being processed. 344 * @return The new per-directory structure created 345 */ 346 void *(*merge_dir_config) (apr_pool_t *p, void *base_conf, void *new_conf); 347 /** Function to allow all modules to create per server configuration 348 * structures. 349 * @param p The pool to use for all allocations. 350 * @param s The server currently being processed. 351 * @return The per-server structure created 352 */ 353 void *(*create_server_config) (apr_pool_t *p, server_rec *s); 354 /** Function to allow all modules to merge the per server configuration 355 * structures for two servers. 356 * @param p The pool to use for all allocations. 357 * @param base_conf The directory structure created for the parent directory. 358 * @param new_conf The directory structure currently being processed. 359 * @return The new per-directory structure created 360 */ 361 void *(*merge_server_config) (apr_pool_t *p, void *base_conf, 362 void *new_conf); 363 364 /** A command_rec table that describes all of the directives this module 365 * defines. */ 366 const command_rec *cmds; 367 368 /** A hook to allow modules to hook other points in the request processing. 369 * In this function, modules should call the ap_hook_*() functions to 370 * register an interest in a specific step in processing the current 371 * request. 372 * @param p the pool to use for all allocations 373 */ 374 void (*register_hooks) (apr_pool_t *p); 375 }; 376 377 /** 378 * @defgroup ModuleInit Module structure initializers 379 * 380 * Initializer for the first few module slots, which are only 381 * really set up once we start running. Note that the first two slots 382 * provide a version check; this should allow us to deal with changes to 383 * the API. The major number should reflect changes to the API handler table 384 * itself or removal of functionality. The minor number should reflect 385 * additions of functionality to the existing API. (the server can detect 386 * an old-format module, and either handle it back-compatibly, or at least 387 * signal an error). See src/include/ap_mmn.h for MMN version history. 388 * @{ 389 */ 390 391 /** The one used in Apache 1.3, which will deliberately cause an error */ 392 #define STANDARD_MODULE_STUFF this_module_needs_to_be_ported_to_apache_2_0 393 394 /** Use this in all standard modules */ 395 #define STANDARD20_MODULE_STUFF MODULE_MAGIC_NUMBER_MAJOR, \ 396 MODULE_MAGIC_NUMBER_MINOR, \ 397 -1, \ 398 __FILE__, \ 399 NULL, \ 400 NULL, \ 401 MODULE_MAGIC_COOKIE, \ 402 NULL /* rewrite args spot */ 403 404 /** Use this only in MPMs */ 405 #define MPM20_MODULE_STUFF MODULE_MAGIC_NUMBER_MAJOR, \ 406 MODULE_MAGIC_NUMBER_MINOR, \ 407 -1, \ 408 __FILE__, \ 409 NULL, \ 410 NULL, \ 411 MODULE_MAGIC_COOKIE 412 413 /** @} */ 414 415 /* CONFIGURATION VECTOR FUNCTIONS */ 416 417 /** configuration vector structure */ 418 typedef struct ap_conf_vector_t ap_conf_vector_t; 419 420 /** 421 * Generic accessors for other modules to get at their own module-specific 422 * data 423 * @param conf_vector The vector in which the modules configuration is stored. 424 * usually r- per_dir_config or s- module_config 425 * @param m The module to get the data for. 426 * @return The module-specific data 427 */ 428 AP_DECLARE(void *) ap_get_module_config(const ap_conf_vector_t *cv, 429 const module *m); 430 431 /** 432 * Generic accessors for other modules to set at their own module-specific 433 * data 434 * @param conf_vector The vector in which the modules configuration is stored. 435 * usually r- per_dir_config or s- module_config 436 * @param m The module to set the data for. 437 * @param val The module-specific data to set 438 */ 439 AP_DECLARE(void) ap_set_module_config(ap_conf_vector_t *cv, const module *m, 440 void *val); 441 442 #if !defined(AP_DEBUG) 443 444 #define ap_get_module_config(v,m) \ 445 (((void **)(v))[(m)- module_index]) 446 #define ap_set_module_config(v,m,val) \ 447 ((((void **)(v))[(m)- module_index]) = (val)) 448 449 #endif /* AP_DEBUG */ 450 451 452 /** 453 * Generic command handling function for strings 454 * @param cmd The command parameters for this directive 455 * @param struct_ptr pointer into a given type 456 * @param arg The argument to the directive 457 * @return An error string or NULL on success 458 */ 459 AP_DECLARE_NONSTD(const char *) ap_set_string_slot(cmd_parms *cmd, 460 void *struct_ptr, 461 const char *arg); 462 463 /** 464 * Generic command handling function for integers 465 * @param cmd The command parameters for this directive 466 * @param struct_ptr pointer into a given type 467 * @param arg The argument to the directive 468 * @return An error string or NULL on success 469 */ 470 AP_DECLARE_NONSTD(const char *) ap_set_int_slot(cmd_parms *cmd, 471 void *struct_ptr, 472 const char *arg); 473 474 /** 475 * Return true if the specified method is limited by being listed in 476 * a Limit container, or by *not* being listed in a LimiteExcept 477 * container. 478 * 479 * @param method Pointer to a string specifying the method to check. 480 * @param cmd Pointer to the cmd_parms structure passed to the 481 * directive handler. 482 * @return 0 if the method is not limited in the current scope 483 */ 484 AP_DECLARE(int) ap_method_is_limited(cmd_parms *cmd, const char *method); 485 486 /** 487 * Generic command handling function for strings, always sets the value 488 * to a lowercase string 489 * @param cmd The command parameters for this directive 490 * @param struct_ptr pointer into a given type 491 * @param arg The argument to the directive 492 * @return An error string or NULL on success 493 */ 494 AP_DECLARE_NONSTD(const char *) ap_set_string_slot_lower(cmd_parms *cmd, 495 void *struct_ptr, 496 const char *arg); 497 /** 498 * Generic command handling function for flags 499 * @param cmd The command parameters for this directive 500 * @param struct_ptr pointer into a given type 501 * @param arg The argument to the directive (either 1 or 0) 502 * @return An error string or NULL on success 503 */ 504 AP_DECLARE_NONSTD(const char *) ap_set_flag_slot(cmd_parms *cmd, 505 void *struct_ptr, 506 int arg); 507 /** 508 * Generic command handling function for files 509 * @param cmd The command parameters for this directive 510 * @param struct_ptr pointer into a given type 511 * @param arg The argument to the directive 512 * @return An error string or NULL on success 513 */ 514 AP_DECLARE_NONSTD(const char *) ap_set_file_slot(cmd_parms *cmd, 515 void *struct_ptr, 516 const char *arg); 517 /** 518 * Generic command handling function to respond with cmd- help as an error 519 * @param cmd The command parameters for this directive 520 * @param struct_ptr pointer into a given type 521 * @param arg The argument to the directive 522 * @return The cmd- help value as the error string 523 * @tip This allows simple declarations such as; 524 * pre 525 * AP_INIT_RAW_ARGS("Foo", ap_set_deprecated, NULL, OR_ALL, 526 * "The Foo directive is no longer supported, use Bar"), 527 * /pre 528 */ 529 AP_DECLARE_NONSTD(const char *) ap_set_deprecated(cmd_parms *cmd, 530 void *struct_ptr, 531 const char *arg); 532 /** 533 * For modules which need to read config files, open logs, etc. this returns 534 * the canonical form of fname made absolute to ap_server_root. 535 * @param p pool to allocate data from 536 * @param fname The file name 537 */ 538 AP_DECLARE(char *) ap_server_root_relative(apr_pool_t *p, const char *fname); 539 540 /* Finally, the hook for dynamically loading modules in... */ 541 542 /** 543 * Add a module to the server 544 * @param m The module structure of the module to add 545 * @param p The pool of the same lifetime as the module 546 */ 547 AP_DECLARE(void) ap_add_module(module *m, apr_pool_t *p); 548 549 /** 550 * Remove a module from the server. There are some caveats 551 * when the module is removed, its slot is lost so all the current 552 * per-dir and per-server configurations are invalid. So we should 553 * only ever call this function when you are invalidating almost 554 * all our current data. I.e. when doing a restart. 555 * @param m the module structure of the module to remove 556 */ 557 AP_DECLARE(void) ap_remove_module(module *m); 558 /** 559 * Add a module to the chained modules list and the list of loaded modules 560 * @param m The module structure of the module to add 561 * @param p The pool with the same lifetime as the module 562 */ 563 AP_DECLARE(void) ap_add_loaded_module(module *mod, apr_pool_t *p); 564 /** 565 * Remove a module fromthe chained modules list and the list of loaded modules 566 * @param m the module structure of the module to remove 567 */ 568 AP_DECLARE(void) ap_remove_loaded_module(module *mod); 569 /** 570 * Add a module to the list of loaded module based on the name of the 571 * module 572 * @param name The name of the module 573 * @param p The pool valid for the lifetime of the module 574 * @return 1 on success, 0 on failure 575 */ 576 AP_DECLARE(int) ap_add_named_module(const char *name, apr_pool_t *p); 577 /** 578 * Find the name of the specified module 579 * @param m The module to get the name for 580 * @return the name of the module 581 */ 582 AP_DECLARE(const char *) ap_find_module_name(module *m); 583 /** 584 * Find a module based on the name of the module 585 * @param name the name of the module 586 * @return the module structure if found, NULL otherwise 587 */ 588 AP_DECLARE(module *) ap_find_linked_module(const char *name); 589 590 /** 591 * Open a ap_configfile_t as apr_file_t 592 * @param ret_cfg open ap_configfile_t struct pointer 593 * @param p The pool to allocate the structure from 594 * @param name the name of the file to open 595 */ 596 AP_DECLARE(apr_status_t) ap_pcfg_openfile(ap_configfile_t **ret_cfg, 597 apr_pool_t *p, const char *name); 598 599 /** 600 * Allocate a ap_configfile_t handle with user defined functions and params 601 * @param p The pool to allocate from 602 * @param descr The name of the file 603 * @param param The argument passed to getch/getstr/close 604 * @param getc_func The getch function 605 * @param gets_func The getstr function 606 * @param close_func The close function 607 */ 608 AP_DECLARE(ap_configfile_t *) ap_pcfg_open_custom(apr_pool_t *p, 609 const char *descr, 610 void *param, 611 int(*getc_func)(void*), 612 void *(*gets_func) (void *buf, size_t bufsiz, void *param), 613 int(*close_func)(void *param)); 614 615 /** 616 * Read one line from open ap_configfile_t, strip LF, increase line number 617 * @param buf place to store the line read 618 * @param bufsize size of the buffer 619 * @param cfp File to read from 620 * @return 1 on success, 0 on failure 621 */ 622 AP_DECLARE(int) ap_cfg_getline(char *buf, size_t bufsize, ap_configfile_t *cfp); 623 624 /** 625 * Read one char from open configfile_t, increase line number upon LF 626 * @param cfp The file to read from 627 * @return the character read 628 */ 629 AP_DECLARE(int) ap_cfg_getc(ap_configfile_t *cfp); 630 631 /** 632 * Detach from open ap_configfile_t, calling the close handler 633 * @param cfp The file to close 634 * @return 1 on sucess, 0 on failure 635 */ 636 AP_DECLARE(int) ap_cfg_closefile(ap_configfile_t *cfp); 637 638 /** 639 * Read all data between the current foo and the matching /foo . All 640 * of this data is forgotten immediately. 641 * @param cmd The cmd_parms to pass to the directives inside the container 642 * @param directive The directive name to read until 643 * @return Error string on failure, NULL on success 644 */ 645 AP_DECLARE(const char *) ap_soak_end_container(cmd_parms *cmd, char *directive); 646 647 /** 648 * Read all data between the current foo and the matching /foo and build 649 * a config tree from it 650 * @param p pool to allocate from 651 * @param temp_pool Temporary pool to allocate from 652 * @param parms The cmd_parms to pass to all directives read 653 * @param current The current node in the tree 654 * @param curr_parent The current parent node 655 * @param orig_directive The directive to read until hit. 656 * @return Error string on failure, NULL on success 657 */ 658 AP_DECLARE(const char *) ap_build_cont_config(apr_pool_t *p, 659 apr_pool_t *temp_pool, 660 cmd_parms *parms, 661 ap_directive_t **current, 662 ap_directive_t **curr_parent, 663 char *orig_directive); 664 665 /** 666 * Build a config tree from a config file 667 * @param parms The cmd_parms to pass to all of the directives in the file 668 * @param conf_pool The pconf pool 669 * @param temp_pool The temporary pool 670 * @param conftree Place to store the root node of the config tree 671 * @return Error string on erro, NULL otherwise 672 */ 673 AP_DECLARE(const char *) ap_build_config(cmd_parms *parms, 674 apr_pool_t *conf_pool, 675 apr_pool_t *temp_pool, 676 ap_directive_t **conftree); 677 678 /** 679 * Walk a config tree and setup the server s internal structures 680 * @param conftree The config tree to walk 681 * @param parms The cmd_parms to pass to all functions 682 * @param section_vector The per-section config vector. 683 * @return Error string on error, NULL otherwise 684 */ 685 AP_DECLARE(const char *) ap_walk_config(ap_directive_t *conftree, 686 cmd_parms *parms, 687 ap_conf_vector_t *section_vector); 688 689 /** 690 * @defgroup ap_check_cmd_context ap_check_cmd_context 691 * @{ 692 */ 693 /** 694 * Check the context a command is used in. 695 * @param cmd The command to check 696 * @param forbidden Where the command is forbidden. 697 * @return Error string on error, NULL on success 698 */ 699 AP_DECLARE(const char *) ap_check_cmd_context(cmd_parms *cmd, 700 unsigned forbidden); 701 702 #define NOT_IN_VIRTUALHOST 0x01 /** Forbidden in Virtualhost */ 703 #define NOT_IN_LIMIT 0x02 /** Forbidden in Limit */ 704 #define NOT_IN_DIRECTORY 0x04 /** Forbidden in Directory */ 705 #define NOT_IN_LOCATION 0x08 /** Forbidden in Location */ 706 #define NOT_IN_FILES 0x10 /** Forbidden in Files */ 707 /** Forbidden in Directory / Location / Files */ 708 #define NOT_IN_DIR_LOC_FILE (NOT_IN_DIRECTORY|NOT_IN_LOCATION|NOT_IN_FILES) 709 /** Forbidden in VirtualHost / Limit / Directory / Location / Files */ 710 #define GLOBAL_ONLY (NOT_IN_VIRTUALHOST|NOT_IN_LIMIT|NOT_IN_DIR_LOC_FILE) 711 712 /** @} */ 713 714 #ifdef CORE_PRIVATE 715 716 /** 717 * The topmost module in the list 718 * @defvar module *ap_top_module 719 */ 720 AP_DECLARE_DATA extern module *ap_top_module; 721 722 /** 723 * Array of all statically linked modules 724 * @defvar module *ap_prelinked_modules[] 725 */ 726 AP_DECLARE_DATA extern module *ap_prelinked_modules[]; 727 /** 728 * Array of all preloaded modules 729 * @defvar module *ap_preloaded_modules[] 730 */ 731 AP_DECLARE_DATA extern module *ap_preloaded_modules[]; 732 /** 733 * Array of all loaded modules 734 * @defvar module **ap_loaded_modules 735 */ 736 AP_DECLARE_DATA extern module **ap_loaded_modules; 737 738 /* For mod_so.c... */ 739 /** Run a single module s two create_config hooks 740 * @param p the pool to allocate from 741 * @param s The server to configure for. 742 * @param m The module to configure 743 */ 744 AP_DECLARE(void) ap_single_module_configure(apr_pool_t *p, server_rec *s, 745 module *m); 746 747 /* For http_main.c... */ 748 /** 749 * Add all of the prelinked modules into the loaded module list 750 * @param process The process that is currently running the server 751 */ 752 AP_DECLARE(void) ap_setup_prelinked_modules(process_rec *process); 753 754 /** 755 * Show the preloaded configuration directives, the help string explaining 756 * the directive arguments, in what module they are handled, and in 757 * what parts of the configuration they are allowed. Used for httpd -h. 758 */ 759 AP_DECLARE(void) ap_show_directives(void); 760 761 /** 762 * Show the preloaded module names. Used for httpd -l. 763 */ 764 AP_DECLARE(void) ap_show_modules(void); 765 766 /** 767 * Show the MPM name. Used in reporting modules such as mod_info to 768 * provide extra information to the user 769 */ 770 AP_DECLARE(const char *) ap_show_mpm(void); 771 772 /** 773 * Read all config files and setup the server 774 * @param process The process running the server 775 * @param temp_pool A pool to allocate temporary data from. 776 * @param config_name The name of the config file 777 * @param conftree Place to store the root of the config tree 778 * @return The setup server_rec list. 779 */ 780 AP_DECLARE(server_rec *) ap_read_config(process_rec *process, 781 apr_pool_t *temp_pool, 782 const char *config_name, 783 ap_directive_t **conftree); 784 785 /** 786 * Run all rewrite args hooks for loaded modules 787 * @param process The process currently running the server 788 */ 789 AP_DECLARE(void) ap_run_rewrite_args(process_rec *process); 790 791 /** 792 * Run the register hooks function for a specified module 793 * @param m The module to run the register hooks function fo 794 * @param p The pool valid for the lifetime of the module 795 */ 796 AP_DECLARE(void) ap_register_hooks(module *m, apr_pool_t *p); 797 798 /** 799 * Setup all virtual hosts 800 * @param p The pool to allocate from 801 * @param main_server The head of the server_rec list 802 */ 803 AP_DECLARE(void) ap_fixup_virtual_hosts(apr_pool_t *p, 804 server_rec *main_server); 805 806 /* For http_request.c... */ 807 808 /** 809 * Setup the config vector for a request_rec 810 * @param p The pool to allocate the config vector from 811 * @return The config vector 812 */ 813 AP_CORE_DECLARE(ap_conf_vector_t*) ap_create_request_config(apr_pool_t *p); 814 815 /** 816 * Setup the config vector for per dir module configs 817 * @param p The pool to allocate the config vector from 818 * @return The config vector 819 */ 820 AP_CORE_DECLARE(ap_conf_vector_t *) ap_create_per_dir_config(apr_pool_t *p); 821 822 /** 823 * Run all of the modules merge per dir config functions 824 * @param p The pool to pass to the merge functions 825 * @param base The base directory config structure 826 * @param new_conf The new directory config structure 827 */ 828 AP_CORE_DECLARE(ap_conf_vector_t*) ap_merge_per_dir_configs(apr_pool_t *p, 829 ap_conf_vector_t *base, 830 ap_conf_vector_t *new_conf); 831 832 /* For http_connection.c... */ 833 /** 834 * Setup the config vector for a connection_rec 835 * @param p The pool to allocate the config vector from 836 * @return The config vector 837 */ 838 AP_CORE_DECLARE(ap_conf_vector_t*) ap_create_conn_config(apr_pool_t *p); 839 840 /* For http_core.c... ( Directory command and virtual hosts) */ 841 842 /** 843 * parse an htaccess file 844 * @param resulting htaccess_result 845 * @param r The request currently being served 846 * @param override Which overrides are active 847 * @param path The path to the htaccess file 848 * @param access_name The list of possible names for .htaccess files 849 * int The status of the current request 850 */ 851 AP_CORE_DECLARE(int) ap_parse_htaccess(ap_conf_vector_t **result, 852 request_rec *r, int override, 853 const char *path, 854 const char *access_name); 855 856 /** 857 * Setup a virtual host 858 * @param p The pool to allocate all memory from 859 * @param hostname The hostname of the virtual hsot 860 * @param main_server The main server for this Apache configuration 861 * @param ps Place to store the new server_rec 862 * return Error string on error, NULL on success 863 */ 864 AP_CORE_DECLARE(const char *) ap_init_virtual_host(apr_pool_t *p, 865 const char *hostname, 866 server_rec *main_server, 867 server_rec **); 868 869 /** 870 * Process the config file for Apache 871 * @param s The server rec to use for the command parms 872 * @param fname The name of the config file 873 * @param conftree The root node of the created config tree 874 * @param p Pool for general allocation 875 * @param ptem Pool for temporary allocation 876 */ 877 AP_DECLARE(void) ap_process_resource_config(server_rec *s, const char *fname, 878 ap_directive_t **conftree, 879 apr_pool_t *p, apr_pool_t *ptemp); 880 881 /** 882 * Process all directives in the config tree 883 * @param s The server rec to use in the command parms 884 * @param conftree The config tree to process 885 * @param p The pool for general allocation 886 * @param ptemp The pool for temporary allocations 887 */ 888 AP_DECLARE(void) ap_process_config_tree(server_rec *s, ap_directive_t *conftree, 889 apr_pool_t *p, apr_pool_t *ptemp); 890 891 /* Module-method dispatchers, also for http_request.c */ 892 /** 893 * Run the handler phase of each module until a module accepts the 894 * responsibility of serving the request 895 * @param r The current request 896 * @return The status of the current request 897 */ 898 AP_CORE_DECLARE(int) ap_invoke_handler(request_rec *r); 899 900 /* for mod_perl */ 901 902 /** 903 * Find a given directive in a command_rec table 904 * @param name The directive to search for 905 * @param cmds The table to search 906 * @return The directive definition of the specified directive 907 */ 908 AP_CORE_DECLARE(const command_rec *) ap_find_command(const char *name, 909 const command_rec *cmds); 910 911 /** 912 * Find a given directive in a list module 913 * @param cmd_name The directive to search for 914 * @param mod The module list to search 915 * @return The directive definition of the specified directive 916 */ 917 AP_CORE_DECLARE(const command_rec *) ap_find_command_in_modules(const char *cmd_name, 918 module **mod); 919 920 /** 921 * Ask a module to create per-server and per-section (dir/loc/file) configs 922 * (if it hasn t happened already). The results are stored in the server s 923 * config, and the specified per-section config vector. 924 * @param server The server to operate upon. 925 * @param section_vector The per-section config vector. 926 * @param section Which section to create a config for. 927 * @param mod The module which is defining the config data. 928 * @param pconf A pool for all configuration allocations. 929 * @return The (new) per-section config data. 930 */ 931 AP_CORE_DECLARE(void *) ap_set_config_vectors(server_rec *server, 932 ap_conf_vector_t *section_vector, 933 const char *section, 934 module *mod, apr_pool_t *pconf); 935 936 #endif 937 938 /* Hooks */ 939 940 /** 941 * Run the header parser functions for each module 942 * @param r The current request 943 * @return OK or DECLINED 944 */ 945 AP_DECLARE_HOOK(int,header_parser,(request_rec *r)) 946 947 /** 948 * Run the pre_config function for each module 949 * @param pconf The config pool 950 * @param plog The logging streams pool 951 * @param ptemp The temporary pool 952 * @return OK or DECLINED on success anything else is a error 953 */ 954 AP_DECLARE_HOOK(int,pre_config,(apr_pool_t *pconf,apr_pool_t *plog, 955 apr_pool_t *ptemp)) 956 957 958 /** 959 * Run the post_config function for each module 960 * @param pconf The config pool 961 * @param plog The logging streams pool 962 * @param ptemp The temporary pool 963 * @param s The list of server_recs 964 * @return OK or DECLINED on success anything else is a error 965 */ 966 AP_DECLARE_HOOK(int,post_config,(apr_pool_t *pconf,apr_pool_t *plog, 967 apr_pool_t *ptemp,server_rec *s)) 968 969 /** 970 * Run the open_logs functions for each module 971 * @param pconf The config pool 972 * @param plog The logging streams pool 973 * @param ptemp The temporary pool 974 * @param s The list of server_recs 975 * @return OK or DECLINED on success anything else is a error 976 */ 977 AP_DECLARE_HOOK(int,open_logs,(apr_pool_t *pconf,apr_pool_t *plog, 978 apr_pool_t *ptemp,server_rec *s)) 979 980 /** 981 * Run the child_init functions for each module 982 * @param pchild The child pool 983 * @param s The list of server_recs in this server 984 */ 985 AP_DECLARE_HOOK(void,child_init,(apr_pool_t *pchild, server_rec *s)) 986 987 /** 988 * Run the handler functions for each module 989 * @param r The request_rec 990 * @remark non-wildcard handlers should HOOK_MIDDLE, wildcard HOOK_LAST 991 */ 992 AP_DECLARE_HOOK(int,handler,(request_rec *r)) 993 994 /** 995 * Run the quick handler functions for each module. The quick_handler 996 * is run before any other requests hooks are called (location_walk, 997 * directory_walk, access checking, et. al.). This hook was added 998 * to provide a quick way to serve content from a URI keyed cache. 999 * 1000 * @param r The request_rec 1001 * @param lookup_uri Controls whether the caller actually wants content or not. 1002 * lookup is set when the quick_handler is called out of 1003 * ap_sub_req_lookup_uri() 1004 */ 1005 AP_DECLARE_HOOK(int,quick_handler,(request_rec *r, int lookup_uri)) 1006 1007 /** 1008 * Retrieve the optional functions for each module. 1009 * This is run immediately before the server starts. Optional functions should 1010 * be registered during the hook registration phase. 1011 */ 1012 AP_DECLARE_HOOK(void,optional_fn_retrieve,(void)) 1013 1014 #ifdef __cplusplus 1015 } 1016 #endif 1017 1018 #endif /* !APACHE_HTTP_CONFIG_H */